package cc.jorange.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.google.common.collect.Lists;

import cc.jorange.bean.Poster;
import cc.jorange.common.Clock;
import cc.jorange.dao.PosterDao;
import cc.jorange.service.PosterService;

@Service
public class PosterServiceImpl implements PosterService {

	private Clock clock = Clock.DEFAULT;

	@Autowired
	private PosterDao posterDao;

	@Override
	public List<Poster> findAll() {
		return Lists.newArrayList(posterDao.findAllOrderBy());
	}

}
